package com.ftg.learn.psi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.io.Serializable;

/**
 * <p>
 * 员工表
 * </p>
 *
 * @author guoBingTong
 * @since 2022-05-18
 */
public class Emp implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 员工姓名
     */
    private String name;

    /**
     * 员工性别(0女, 1男, 2保密)
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY) //判断Json对象中是否包含空
    private Boolean gender;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Boolean getGender() {
        return gender;
    }

    public void setGender(Boolean gender) {
        this.gender = gender;
    }

    @Override
    public String toString() {
        return "Emp{" +
            "id=" + id +
            ", name=" + name +
            ", gender=" + gender +
        "}";
    }
}
